window.onload = function() {

    var tempNum = $('#transactionAccount').val();
    $("#transferAccount option[value=" + tempNum + "]").remove();
    var tempText = $('option[value="' + tempNum + '"]').text();

    $('#transactionAccount').change(
        function() {
            var sourceAccount = $('#transactionAccount').val();

            $('#transferAccount').append(
                    '<option value="'+tempNum+'">' + tempText
                            + '</option>').val('whatever');

            tempNum = $('#transactionAccount').val();
            $("#transferAccount option[value=" + sourceAccount + "]")
                    .remove();
            tempText = $('option[value="' + tempNum + '"]').text();
            });
};